import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.zlib.d.ts',
  content: "/*\n * Copyright (c) 2021-2024 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\"),\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit BasicServicesKit\n */\nimport { AsyncCallback } from './@ohos.base';\n/**\n * @namespace zlib\n * @syscap SystemCapability.BundleManager.Zlib\n * @since 7\n */\n/**\n * @namespace zlib\n * @syscap SystemCapability.BundleManager.Zlib\n * @atomicservice\n * @since 11\n */\n/**\n * @namespace zlib\n * @syscap SystemCapability.BundleManager.Zlib\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare namespace zlib {\n    /**\n     * ErrorCode\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     * @deprecated since 9\n     */\n    export enum ErrorCode {\n        /**\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         * @deprecated since 9\n         */\n        ERROR_CODE_OK = 0,\n        /**\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         * @deprecated since 9\n         */\n        ERROR_CODE_ERRNO = -1\n    }\n    /**\n     * CompressLevel\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     */\n    /**\n     * CompressLevel\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum CompressLevel {\n        /**\n         * Indicates the no compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the no compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_LEVEL_NO_COMPRESSION = 0,\n        /**\n         * Indicates the best speed mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the best speed mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_LEVEL_BEST_SPEED = 1,\n        /**\n         * Indicates the best compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the best compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_LEVEL_BEST_COMPRESSION = 9,\n        /**\n         * Indicates the default compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the default compression mode.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_LEVEL_DEFAULT_COMPRESSION = -1\n    }\n    /**\n     * CompressStrategy\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     */\n    /**\n     * CompressStrategy\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum CompressStrategy {\n        /**\n         * Indicates the default strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the default strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_STRATEGY_DEFAULT_STRATEGY = 0,\n        /**\n         * Indicates the filtered strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the filtered strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_STRATEGY_FILTERED = 1,\n        /**\n         * Indicates the huffman-only strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the huffman-only strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_STRATEGY_HUFFMAN_ONLY = 2,\n        /**\n         * Indicates the RLE strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the RLE strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_STRATEGY_RLE = 3,\n        /**\n         * Indicates the fixed strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the fixed strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        COMPRESS_STRATEGY_FIXED = 4\n    }\n    /**\n     * ParallelStrategy\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    export enum ParallelStrategy {\n        /**\n         * Indicates the sequential strategy, compress and decompress sequentially.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PARALLEL_STRATEGY_SEQUENTIAL = 0,\n        /**\n         * Indicates the parallel decompression strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        PARALLEL_STRATEGY_PARALLEL_DECOMPRESSION = 1\n    }\n    /**\n     * MemLevel\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     */\n    /**\n     * MemLevel\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    export enum MemLevel {\n        /**\n         * Uses the least amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Uses the least amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        MEM_LEVEL_MIN = 1,\n        /**\n         * Uses the maximum amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Uses the maximum amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        MEM_LEVEL_MAX = 9,\n        /**\n         * Uses the default amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Uses the default amount of memory.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        MEM_LEVEL_DEFAULT = 8\n    }\n    /**\n     * CompressFlushMode\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    export enum CompressFlushMode {\n        /**\n         * Default value, indicating normal operation.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        NO_FLUSH = 0,\n        /**\n         * Generate partial refresh points in compressed streams.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        PARTIAL_FLUSH = 1,\n        /**\n         * Force output of all compressed data while maintaining the compressed stream state.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        SYNC_FLUSH = 2,\n        /**\n         * the compression state is reset.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        FULL_FLUSH = 3,\n        /**\n         * The compression or decompression process ends.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        FINISH = 4,\n        /**\n         * Allow for finer grained control.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        BLOCK = 5,\n        /**\n         * There are special purposes in implementation.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        TREES = 6\n    }\n    /**\n     * Return codes for the compression/decompression functions.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    export enum ReturnStatus {\n        /**\n         * Indicates success.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        OK = 0,\n        /**\n         * Indicates that the entire data has been processed.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        STREAM_END = 1,\n        /**\n         * Indicates preset dictionary is required to continue decompression.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        NEED_DICT = 2\n    }\n    /**\n     * The deflate compression method (the only one supported in this version).\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    export enum CompressMethod {\n        /**\n         * Compression method.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        DEFLATED = 8\n    }\n    /**\n     * Define the reference point for offset.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    export enum OffsetReferencePoint {\n        /**\n         * Seek from beginning of file.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        SEEK_SET = 0,\n        /**\n         * Seek from current position.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        SEEK_CUR = 1\n    }\n    /**\n     * Defines compress or decompress options.\n     *\n     * @typedef Options\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     */\n    /**\n     * Defines compress or decompress options.\n     *\n     * @typedef Options\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface Options {\n        /**\n         * Indicates the compress level.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the compress level.\n         *\n         * @type { ?CompressLevel }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        level?: CompressLevel;\n        /**\n         * Indicates the memory level.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the memory level.\n         *\n         * @type { ?MemLevel }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        memLevel?: MemLevel;\n        /**\n         * Indicates the compress strategy.\n         *\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @since 7\n         */\n        /**\n         * Indicates the compress strategy.\n         *\n         * @type { ?CompressStrategy }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        strategy?: CompressStrategy;\n        /**\n         * Indicates the parallel strategy.\n         *\n         * @type { ?ParallelStrategy }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        parallel?: ParallelStrategy;\n    }\n    /**\n     * Process all the information required for compression and decompression.\n     *\n     * @typedef ZStream\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface ZStream {\n        /**\n         * Next input byte.\n         *\n         * @type { ?ArrayBuffer }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        nextIn?: ArrayBuffer;\n        /**\n         * Number of bytes available at nextIn.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        availableIn?: number;\n        /**\n         * Total number of input bytes read so far.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        totalIn?: number;\n        /**\n         * Next output byte will go here.\n         *\n         * @type { ?ArrayBuffer }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        nextOut?: ArrayBuffer;\n        /**\n         * Remaining free space at nextOut.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        availableOut?: number;\n        /**\n         * Total number of bytes output so far.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        totalOut?: number;\n        /**\n         * Best guess about the data type.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        dataType?: number;\n        /**\n         * Adler-32 or CRC-32 value of the uncompressed data.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        adler?: number;\n    }\n    /**\n     * Gzip header information passed to and from zlib routines.\n     *\n     * @typedef GzHeader\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface GzHeader {\n        /**\n         * True if compressed data believed to be text.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        isText?: boolean;\n        /**\n         * Operating system.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        os?: number;\n        /**\n         * Modification time.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        time?: number;\n        /**\n         * Extra flags.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        xflags?: number;\n        /**\n         * Extra field.\n         *\n         * @type { ?ArrayBuffer }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        extra?: ArrayBuffer;\n        /**\n         * Extra field length.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        extraLen?: number;\n        /**\n         * Zero-terminated file name.\n         *\n         * @type { ?ArrayBuffer }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        name?: ArrayBuffer;\n        /**\n         * Zero-terminated comment.\n         *\n         * @type { ?ArrayBuffer }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        comment?: ArrayBuffer;\n        /**\n         * True if there was or will be a header crc\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        hcrc?: boolean;\n        /**\n         * True when done reading gzip header.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        done?: boolean;\n    }\n    /**\n     * Compression and decompression return value information.\n     *\n     * @typedef ZipOutputInfo\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface ZipOutputInfo {\n        /**\n         * ReturnStatus the specific meaning is defined as enum.\n         *\n         * @type { ReturnStatus }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        status: ReturnStatus;\n        /**\n         * Total sizeof the destination buffer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        destLen: number;\n    }\n    /**\n     * InflateGetDictionary and deflateGetDictionary return value information.\n     *\n     * @typedef DictionaryOutputInfo\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface DictionaryOutputInfo {\n        /**\n         * ReturnStatus the specific meaning is defined as enum.\n         *\n         * @type { ReturnStatus }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        status: ReturnStatus;\n        /**\n         * Return dictionary length.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        dictionaryLength: number;\n    }\n    /**\n     * Uncompress2 return value information.\n     *\n     * @typedef DecompressionOutputInfo\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface DecompressionOutputInfo {\n        /**\n         * ReturnStatus the specific meaning is defined as enum.\n         *\n         * @type { ReturnStatus }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        status: ReturnStatus;\n        /**\n         * Total sizeof the destination buffer.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        destLength: number;\n        /**\n         * Total sizeof the sourceLen.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        sourceLength: number;\n    }\n    /**\n     * DeflatePending return value information.\n     *\n     * @typedef DeflatePendingOutputInfo\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface DeflatePendingOutputInfo {\n        /**\n         * ReturnStatus the specific meaning is defined as enum.\n         *\n         * @type { ReturnStatus }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        status: ReturnStatus;\n        /**\n         * The number of bytes of output that have been generated.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        pending: number;\n        /**\n         * The number of bits of output that have been generated.\n         *\n         * @type { number }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        bits: number;\n    }\n    /**\n     * GzError return value information.\n     *\n     * @typedef GzErrorOutputInfo\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface GzErrorOutputInfo {\n        /**\n         * Return Zlib status ReturnStatus the specific meaning is defined as enum.\n         *\n         * @type { ReturnStatus }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        status: ReturnStatus;\n        /**\n         * The status message for the last status which occurred on file.\n         *\n         * @type { string }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        statusMsg: string;\n    }\n    /**\n     * A callback function for reading input data provided by a user. When the decompression process requires more input data,\n     * zlib will call this function. This function should read data from the data source to the buffer.\n     *\n     * @typedef { function }\n     * @param { object } inDesc - A universal user-defined data object.\n     * The specific type and content depend on the actual application scenario, which can include configuration data, file handles, etc.\n     * @returns { ArrayBuffer } Return the buffer successfully read by the data source through the input descriptor.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    type InflateBackInputCallback = (inDesc: object) => ArrayBuffer;\n    /**\n     * The output data provided by the user is written into the callback function. Whenever decompressed data is ready for output,\n     * zlib calls this function to write the data from the buffer to the target location.\n     *\n     * @typedef { function }\n     * @param { object } outDesc - Object passed to output function. Object dependency requirement implementation.\n     * @param { ArrayBuffer } buf - Used to store data to be written.\n     * @param { number } length - Write the length of the output buffer.\n     * @returns { number } Return the number of bytes output.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    type InflateBackOutputCallback = (outDesc: object, buf: ArrayBuffer, length: number) => number;\n    /**\n     * Compress the specified file.\n     *\n     * @param { string } inFile Indicates the path of the file to be compressed.\n     * @param { string } outFile Indicates the path of the output compressed file.\n     * @param { Options } options\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.zlib#compressFile\n     */\n    function zipFile(inFile: string, outFile: string, options: Options): Promise<void>;\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile Indicates the path of the file to be decompressed.\n     * @param { string } outFile Indicates the path of the decompressed file.\n     * @param { Options } options\n     * @returns { Promise<void> }\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.zlib#decompressFile\n     */\n    function unzipFile(inFile: string, outFile: string, options: Options): Promise<void>;\n    /**\n     * Compress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be compressed.\n     * @param { string } outFile - Indicates the path of the output compressed file.\n     * @param { Options } options - Indicates the options of compressing file.\n     * @param { AsyncCallback<void> } callback - The callback of compressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 9\n     */\n    /**\n     * Compress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be compressed.\n     * @param { string } outFile - Indicates the path of the output compressed file.\n     * @param { Options } options - Indicates the options of compressing file.\n     * @param { AsyncCallback<void> } callback - The callback of compressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function compressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback<void>): void;\n    /**\n     * Compress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be compressed.\n     * @param { string } outFile - Indicates the path of the output compressed file.\n     * @param { Options } options - Indicates the options of compressing file.\n     * @returns { Promise<void> } Returns the result of compressFile file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 9\n     */\n    /**\n     * Compress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be compressed.\n     * @param { string } outFile - Indicates the path of the output compressed file.\n     * @param { Options } options - Indicates the options of compressing file.\n     * @returns { Promise<void> } Returns the result of compressFile file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function compressFile(inFile: string, outFile: string, options: Options): Promise<void>;\n    /**\n     * Compress the specified multiple files.\n     *\n     * @param { Array<string> } inFiles - Indicates the files to be compressed.\n     * @param { string } outFile - Indicates the path of the output compressed file.\n     * @param { Options } options - Indicates the options of compressing file.\n     * @returns { Promise<void> } Returns the result of compressFile file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function compressFiles(inFiles: Array<string>, outFile: string, options: Options): Promise<void>;\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressed file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @param { AsyncCallback<void> } callback - The callback of decompressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 9\n     */\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressed file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @param { AsyncCallback<void> } callback - The callback of decompressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 10\n     */\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressed file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @param { AsyncCallback<void> } callback - The callback of decompressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function decompressFile(inFile: string, outFile: string, options: Options, callback: AsyncCallback<void>): void;\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressed file.\n     * @param { AsyncCallback<void> } callback - The callback of decompressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 10\n     */\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressed file.\n     * @param { AsyncCallback<void> } callback - The callback of decompressing file result.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function decompressFile(inFile: string, outFile: string, callback: AsyncCallback<void>): void;\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressing file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @returns { Promise<void> } Returns the result of decompressing file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 9\n     */\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressing file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @returns { Promise<void> } Returns the result of decompressing file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @since 10\n     */\n    /**\n     * Decompress the specified file.\n     *\n     * @param { string } inFile - Indicates the path of the file to be decompressed.\n     * @param { string } outFile - Indicates the path of the output decompressing file.\n     * @param { Options } options - Indicates the options of decompressing file.\n     * @returns { Promise<void> } Returns the result of decompressing file.\n     * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900002 - The input destination file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function decompressFile(inFile: string, outFile: string, options?: Options): Promise<void>;\n    /**\n     * Get the original size of the compressed zip file, the size is the meta data stored in zip file.\n     *\n     * @param { string } compressedFile - Indicates the path of the compressed file.\n     * @returns { Promise<number> } Returns the original size of the compressed file.\n     * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types.\n     * @throws { BusinessError } 900001 - The input source file is invalid.\n     * @throws { BusinessError } 900003 - The input source file is not in ZIP format or is damaged.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getOriginalSize(compressedFile: string): Promise<number>;\n    /**\n     * Asynchronous creation of verification objects.\n     *\n     * @returns { Promise<Checksum> } Returns verification objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createChecksum(): Promise<Checksum>;\n    /**\n     * Synchronize creation of verification objects.\n     *\n     * @returns { Checksum } Returns verification objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createChecksumSync(): Checksum;\n    /**\n     * Asynchronous creation of zip objects.\n     *\n     * @returns { Promise<Zip> } Returns zip objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createZip(): Promise<Zip>;\n    /**\n     * Synchronize creation of zip objects.\n     *\n     * @returns { Zip } Returns zip objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createZipSync(): Zip;\n    /**\n     * Synchronize creation of gzip objects.\n     *\n     * @returns { Promise<GZip> } Returns zip objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createGZip(): Promise<GZip>;\n    /**\n     * Synchronize creation of gzip objects.\n     *\n     * @returns { GZip } Returns zip objects.\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    function createGZipSync(): GZip;\n    /**\n     * Calculate Adler-32 and CRC-32 checksum.\n     *\n     * @typedef Checksum\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface Checksum {\n        /**\n         * Update a running Adler-32 checksum with the bytes buf.\n         *\n         * @param { number } adler - Initial value of Adler32 checksum.\n         * @param { ArrayBuffer } buf - Calculate checksum data buffer.\n         * @returns { Promise<number> } Return the updated checksum.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        adler32(adler: number, buf: ArrayBuffer): Promise<number>;\n        /**\n         * Combine two Adler-32 checksum into one.\n         *\n         * @param { number } adler1 - The first Adler32 checksum.\n         * @param { number } adler2 - The second Adler32 checksum.\n         * @param { number } len2 - The length of the data block associated with the second Adler32 checksum.\n         * @returns { Promise<number> } Returns the Adler-32 checksum.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        adler32Combine(adler1: number, adler2: number, len2: number): Promise<number>;\n        /**\n         * Update a running CRC-32 with the bytes buf.\n         *\n         * @param { number } crc - Initial value of CRC-32 checksum.\n         * @param { ArrayBuffer } buf - Calculate checksum data buffer.\n         * @returns { Promise<number> } Return the updated CRC-32.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        crc32(crc: number, buf: ArrayBuffer): Promise<number>;\n        /**\n         * Combine two CRC-32 check values into one.\n         *\n         * @param { number } crc1 - The first CRC-32 checksum.\n         * @param { number } crc2 - The second CRC-32 checksum.\n         * @param { number } len2 - The length of the data block associated with the second CRC-32 checksum.\n         * @returns { Promise<number> } Returns the CRC-32 check value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        crc32Combine(crc1: number, crc2: number, len2: number): Promise<number>;\n        /**\n         * Update a running CRC-64 with the bytes buf.\n         *\n         * @param { number } crc - Initial value of CRC-64 checksum.\n         * @param { ArrayBuffer } buf - Calculate checksum data buffer.\n         * @returns { Promise<number> } Return the updated CRC-64.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         * <br>2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        crc64(crc: number, buf: ArrayBuffer): Promise<number>;\n        /**\n         * Get CRC-32 table.\n         *\n         * @returns { Promise<Array<number>> } Return a array to the CRC-32 table.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        getCrcTable(): Promise<Array<number>>;\n        /**\n         * Get CRC-64 table.\n         *\n         * @returns { Promise<Array<number>> } Return a array to the CRC-64 table.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        getCrc64Table(): Promise<Array<number>>;\n    }\n    /**\n     * Deflate and inflate interface.\n     *\n     * @typedef Zip\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface Zip {\n        /**\n         * Get ZStream.\n         *\n         * @returns { Promise<ZStream> } Return the required ZStream for compression or decompression.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        getZStream(): Promise<ZStream>;\n        /**\n         * Get the version information of the current linked zlib library.\n         *\n         * @returns { Promise<string> } Returns a specific version number string constant containing the zlib library.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        zlibVersion(): Promise<string>;\n        /**\n         * Return flags indicating compile-time options.\n         *\n         * @returns { Promise<number> } Return flags indicating compile-time options.\n         * Type sizes, two bits each, 00 = 16 bits, 01 = 32, 10 = 64, 11 = other:\n         * 1.0: size of uInt.\n         * 3.2: size of uLong.\n         * 5.4: size of voidpf (pointer).\n         * 7.6: size of z_off_t.\n         * Compiler, assembler, and debug options:\n         * 8: ZLIB_DEBUG.\n         * 9: ASMV or ASMINF -- use ASM code.\n         * 10: ZLIB_WINAPI -- exported functions use the WINAPI calling convention.\n         * 11: 0 (reserved).\n         * One-time table building (smaller code, but not thread-safe if true):\n         * 12: BUILDFIXED -- build static block decoding tables when needed.\n         * 13: DYNAMIC_CRC_TABLE -- build CRC calculation tables when needed.\n         * 14,15: 0 (reserved).\n         * Library content (indicates missing functionality):\n         * 16: NO_GZCOMPRESS -- gz* functions cannot compress (to avoid linking deflate code when not needed).\n         * 17: NO_GZIP -- deflate can't write gzip streams, and inflate can't detect and decode gzip streams (to avoid linking crc code).\n         * 18-19: 0 (reserved).\n         * Operation variations (changes in library functionality):\n         * 20: PKZIP_BUG_WORKAROUND -- slightly more permissive inflate.\n         * 21: FASTEST -- deflate algorithm with only one, lowest compression level.\n         * 22,23: 0 (reserved).\n         * The sprintf variant used by gzprintf (zero is best):\n         * 24: 0 = vs*, 1 = s* -- 1 means limited to 20 arguments after the format.\n         * 25: 0 = *nprintf, 1 = *printf -- 1 means gzprintf() not secure.\n         * 26: 0 = returns value, 1 = void -- 1 means inferred string length returned.\n         * Remainder:\n         * 27-31: 0 (reserved).\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        zlibCompileFlags(): Promise<number>;\n        /**\n         * Compresses the source buffer into the destination buffer.\n         *\n         * @param { ArrayBuffer } dest - Destination buffer.\n         * @param { ArrayBuffer } source - Source data buffer.\n         * @param { number } sourceLen - Source data length.\n         * @returns { Promise<ZipOutputInfo> } Return ReturnStatus and total sizeof the destination buffer.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        compress(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise<ZipOutputInfo>;\n        /**\n         * Compresses the source buffer into the destination buffer.\n         *\n         * @param { ArrayBuffer } dest - Destination buffer.\n         * @param { ArrayBuffer } source - Source data buffer.\n         * @param { CompressLevel } level - Compression level.\n         * @param { number } sourceLen - Source data length.\n         * @returns { Promise<ZipOutputInfo> } Return ReturnStatus and total sizeof the destination buffer.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        compress2(dest: ArrayBuffer, source: ArrayBuffer, level: CompressLevel, sourceLen?: number): Promise<ZipOutputInfo>;\n        /**\n         * Calculate the upper limit of the return compression size.\n         *\n         * @param { number } sourceLen - The length of the source data.\n         * @returns { Promise<number> } Returns an upper bound on the compressed size after.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        compressBound(sourceLen: number): Promise<number>;\n        /**\n         * Decompress the compressed data into its original uncompressed form.\n         *\n         * @param { ArrayBuffer } dest - Destination buffer.\n         * @param { ArrayBuffer } source - Source data buffer.\n         * @param { number } sourceLen - Source data length.\n         * @returns { Promise<ZipOutputInfo> } Return ReturnStatus and total sizeof the destination buffer.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800005 - The input data is incorrect. For example, the data does not conform to the zlib compression format, the compressed data is corrupted, or the data is not compressed.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        uncompress(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise<ZipOutputInfo>;\n        /**\n         * Decompress the compressed data into its original uncompressed form.\n         *\n         * @param { ArrayBuffer } dest - Destination buffer.\n         * @param { ArrayBuffer } source - Source data buffer.\n         * @param { number } sourceLen - Source data length.\n         * @returns { Promise<DecompressionOutputInfo> } Return ReturnStatus and total sizeof the destination buffer and total sizeof the sourceLen.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800005 - The input data is incorrect. For example, the data does not conform to the zlib compression format, the compressed data is corrupted, or the data is not compressed.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        uncompress2(dest: ArrayBuffer, source: ArrayBuffer, sourceLen?: number): Promise<DecompressionOutputInfo>;\n        /**\n         * Verify the checksum inside the structure of compressed stream z_stream.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } check - Expected checksum.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateValidate(strm: ZStream, check: number): Promise<ReturnStatus>;\n        /**\n         * Find a synchronization point for the current decompressed stream.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateSyncPoint(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Skips invalid compressed data until a possible full flush point can be found.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800005 - The input data is incorrect. For example, the data does not conform to the zlib compression format, the compressed data is corrupted, or the data is not compressed.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateSync(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Initializes the decompression dictionary from the given uncompressed byte sequence.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { ArrayBuffer } dictionary - Dictionary data.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800005 - The input data is incorrect. For example, the data does not conform to the zlib compression format, the compressed data is corrupted, or the data is not compressed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateSetDictionary(strm: ZStream, dictionary: ArrayBuffer): Promise<ReturnStatus>;\n        /**\n         * Reset the state of the decompressed stream to retain the allocated Huffman decoding tree and preset dictionary.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateResetKeep(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * This function is equivalent to inflateEnd followed by inflateInit, but does not free and reallocate the internal decompression state.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateReset2(strm: ZStream, windowBits: number): Promise<ReturnStatus>;\n        /**\n         * This function is equivalent to inflateEnd followed by inflateInit, but does not free and reallocate the internal decompression state.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateReset(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * This function inserts bits in the inflate input stream.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } bits - The provided bits.\n         * @param { number } value - The provided value.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflatePrime(strm: ZStream, bits: number, value: number): Promise<ReturnStatus>;\n        /**\n         * Is used to mark locations in the input data for random access.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<number> } Return the internal marker position of the current decompressed stream.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateMark(strm: ZStream): Promise<number>;\n        /**\n         * Initializes the internal stream state for decompression.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } windowBits - Is the base two logarithm of the maximum window size.\n         * It should be in the range 8..15 for this version of the library. The default value is 15 if inflateInit is used instead.\n         * windowBits must be greater than or equal to the windowBits value provided to deflateInit2() while compressing,\n         * or it must be equal to 15 if deflateInit2() was not used. If a compressed stream with a larger window size is given as input,\n         * inflate() will return with the error code Z_DATA_ERROR instead of trying to allocate a larger window.\n         * WindowBits can also be zero to request that inflate use the window size in the zlib header of the compressed stream.\n         * WindowBits can also be -8..-15 for raw inflate. In this case, -windowBits determines the window size.\n         * inflate() will then process raw deflate data, not looking for a zlib or gzip header,\n         * not generating a check value, and not looking for any check values for comparison at the end of the stream.\n         * This is for use with other formats that use the deflate compressed data format such as zip. Those formats provide their own check values.\n         * If a custom format is developed using the raw deflate format for compressed data, it is recommended that a check value such as an Adler-32 or\n         * a CRC-32 be applied to the uncompressed data as is done in the zlib, gzip, and zip formats. For most applications,\n         * the zlib format should be used as is. Note that comments above on the use in deflateInit2() applies to the magnitude of windowBits.WindowBits\n         * can also be greater than 15 for optional gzip decoding. Add 32 to windowBits to enable zlib and gzip decoding with automatic header detection,\n         * or add 16 to decode only the gzip format. If a gzip stream is being decoded, strm->adler is a CRC-32 instead of an Adler-32.\n         * Unlike the gunzip utility and gzread(), inflate() will *not* automatically decode concatenated gzip members. Inflate() will return\n         * Z_STREAM_END at the end of the gzip member. The state would need to be reset to continue decoding a subsequent gzip member.\n         * This *must* be done if there is more data after a gzip member, in order for the decompression to be compliant with the gzip standard.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateInit2(strm: ZStream, windowBits: number): Promise<ReturnStatus>;\n        /**\n         * Initializes the internal stream state for decompression.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateInit(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Requests that gzip header information be stored in the provided gz_header structure.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { GzHeader } header - Receive gzip header information extracted from compressed data stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateGetHeader(strm: ZStream, header: GzHeader): Promise<ReturnStatus>;\n        /**\n         * Obtain the current dictionary content of the decompressed stream.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { ArrayBuffer } dictionary - The sliding dictionary being maintained by inflate.\n         * @returns { Promise<DictionaryOutputInfo> } Return ReturnStatus and dictionary length.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateGetDictionary(strm: ZStream, dictionary: ArrayBuffer): Promise<DictionaryOutputInfo>;\n        /**\n         * All dynamically allocated data structures for this stream are freed.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateEnd(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Sets the destination stream as a complete copy of the source stream.\n         *\n         * @param { Zip } source - The status information of the current decompression process.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateCopy(source: Zip): Promise<ReturnStatus>;\n        /**\n         * Obtain the number of Huffman encoding trees that have been used in the current decompression stream during the inflate process.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<number> } Return the number of used Huffman encoding trees.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateCodesUsed(strm: ZStream): Promise<number>;\n        /**\n         * Initialize the internal stream state for decompression using inflateBack() calls.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2. The value range is between 8~15.\n         * @param { ArrayBuffer } window - The preset sliding window buffer.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateBackInit(strm: ZStream, windowBits: number, window: ArrayBuffer): Promise<ReturnStatus>;\n        /**\n         * All memory allocated by inflateBackInit() is freed.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateBackEnd(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Does a raw inflate with a single call using a call-back interface for input and output.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { InflateBackInputCallback } backIn - A function that decompresses data from the end to read the raw compressed data from the input source.\n         * @param { object } inDesc - Universal object.\n         * @param { InflateBackOutputCallback } backOut - Write the decompressed data to the target output.\n         * @param { object } outDesc - Universal object.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflateBack(strm: ZStream, backIn: InflateBackInputCallback, inDesc: object, backOut: InflateBackOutputCallback, outDesc: object): Promise<ReturnStatus>;\n        /**\n         * Decompresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { CompressFlushMode } flush - The behavior pattern of compression operation.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800005 - The input data is incorrect. For example, the data does not conform to the zlib compression format, the compressed data is corrupted, or the data is not compressed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        inflate(strm: ZStream, flush: CompressFlushMode): Promise<ReturnStatus>;\n        /**\n         * Initializes the internal stream state for compression.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { CompressLevel } level - Compression level.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateInit(strm: ZStream, level: CompressLevel): Promise<ReturnStatus>;\n        /**\n         * Initializes the internal stream state for compression.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { CompressLevel } level - Compression level.\n         * @param { CompressMethod } method - The compression method.\n         * @param { number } windowBits - Parameter is interpreted the same as it is for inflateInit2.\n         * @param { MemLevel } memLevel - The memory usage level.\n         * @param { CompressStrategy } strategy - The compression strategy.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateInit2(strm: ZStream, level: CompressLevel, method: CompressMethod, windowBits: number, memLevel: MemLevel, strategy: CompressStrategy): Promise<ReturnStatus>;\n        /**\n         * Compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { CompressFlushMode } flush - The behavior pattern of compression operation.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800007 - The input buffer is incorrect, and the output buffer is too small to accommodate the compressed or decompressed data.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflate(strm: ZStream, flush: CompressFlushMode): Promise<ReturnStatus>;\n        /**\n         * All dynamically allocated data structures for this stream are freed.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateEnd(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Calculate an upper bound on the compressed size.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } sourceLength - The length of uncompressed data.\n         * @returns { Promise<number> } Return an upper bound on the compressed size.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateBound(strm: ZStream, sourceLength: number): Promise<number>;\n        /**\n         * Provides gzip header information for when a gzip stream is requested by deflateInit2().\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { GzHeader } head - Object a to gz_headerp that already has gzip header information.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateSetHeader(strm: ZStream, head: GzHeader): Promise<ReturnStatus>;\n        /**\n         * Sets the destination stream as a complete copy of the source stream.\n         *\n         * @param { Zip } source - Object to source z_stream structure.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateCopy(source: Zip): Promise<ReturnStatus>;\n        /**\n         * Initializes the compression dictionary from the given byte sequence without producing any compressed output.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { ArrayBuffer } dictionary - Object a to gz_headerp that already has gzip header information.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateSetDictionary(strm: ZStream, dictionary: ArrayBuffer): Promise<ReturnStatus>;\n        /**\n         * Returns the sliding dictionary being maintained by deflate.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { ArrayBuffer } dictionary - The sliding dictionary being maintained by deflate.\n         * @returns { Promise<DictionaryOutputInfo> } Return ReturnStatus and dictionary length\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateGetDictionary(strm: ZStream, dictionary: ArrayBuffer): Promise<DictionaryOutputInfo>;\n        /**\n         * Fine tune deflate's internal compression parameters.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } goodLength - Good matching length threshold.\n         * @param { number } maxLazy - Maximum lazy matching times.\n         * @param { number } niceLength - Good Lazy Length Threshold.\n         * @param { number } maxChain - Maximum chain length.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateTune(strm: ZStream, goodLength: number, maxLazy: number, niceLength: number, maxChain: number): Promise<ReturnStatus>;\n        /**\n         * This function is equivalent to deflateEnd followed by deflateInit, but does not free and reallocate the internal compression state.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateReset(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Reset the initialized deflate compressed stream, but retain its set compression parameters and dictionary.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateResetKeep(strm: ZStream): Promise<ReturnStatus>;\n        /**\n         * Returns the number of bytes and bits of output that have been generated, but not yet provided in the available output.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @returns { Promise<DeflatePendingOutputInfo> } Return ReturnStatus along with the number of bytes and bits generated.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflatePending(strm: ZStream): Promise<DeflatePendingOutputInfo>;\n        /**\n         * Dynamically update the compression level and compression strategy.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { CompressLevel } level - New compression level.\n         * @param { CompressStrategy } strategy - New compression strategy.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflateParams(strm: ZStream, level: CompressLevel, strategy: CompressStrategy): Promise<ReturnStatus>;\n        /**\n         * Inserts bits in the deflate output stream.\n         *\n         * @param { ZStream } strm - Object to structure z_stream.\n         * @param { number } bits - The number of bits to be inserted. The value range is between 0~16.\n         * @param { number } value - The bit value corresponding to the number of bits.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        deflatePrime(strm: ZStream, bits: number, value: number): Promise<ReturnStatus>;\n    }\n    /**\n     * Gzip related interfaces.\n     *\n     * @typedef GZip\n     * @syscap SystemCapability.BundleManager.Zlib\n     * @atomicservice\n     * @since 12\n     */\n    interface GZip {\n        /**\n         * Associate a gzFile with the file descriptor fd.\n         *\n         * @param { number } fd - The file descriptor. Usually this is obtained through system calls to 'open' or other methods.\n         * @param { string } mode - Used to specify access mode.\n         * @returns { Promise<void> }\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800002 - No such file or access mode error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzdopen(fd: number, mode: string): Promise<void>;\n        /**\n         * Set the internal buffer size used by this library's functions for file to size.\n         *\n         * @param { number } size - The internal buffer size to be set.\n         * @returns { Promise<number> } Returns 0 on success.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzbuffer(size: number): Promise<number>;\n        /**\n         * Open the gzip (.gz) file at path for reading and decompressing, or compressing and writing.\n         *\n         * @param { string } path - The file path to be opened.\n         * @param { string } mode - Specify the file opening method.\n         * @returns { Promise<void> }\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800002 - No such file or access mode error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzopen(path: string, mode: string): Promise<void>;\n        /**\n         * Check if the reading position of the gzip compressed file has reached the end of the file.\n         *\n         * @returns { Promise<number> } Return 1 (true) if the end-of-file indicator for file has been set while reading.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzeof(): Promise<number>;\n        /**\n         * Check if the specified gzip file handle file directly accesses the original uncompressed data.\n         *\n         * @returns { Promise<number> } returns 1 (true) if transparent writing was requested.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzdirect(): Promise<number>;\n        /**\n         * Flush all pending output for file, if necessary, close file and deallocate the (de)compression state.\n         *\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800006 - Memory allocation failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzclose(): Promise<ReturnStatus>;\n        /**\n         * Clear the error and end-of-file flags for file.\n         *\n         * @returns { Promise<void> }\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzclearerr(): Promise<void>;\n        /**\n         * The error message for the last error which occurred on file.\n         *\n         * @returns { Promise<GzErrorOutputInfo> } Return the status message for the last status which occurred on file and ReturnStatus.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzerror(): Promise<GzErrorOutputInfo>;\n        /**\n         * Read and decompress one byte from file.\n         *\n         * @returns { Promise<number> } Return the ASCII code of a character.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzgetc(): Promise<number>;\n        /**\n         * Flush all pending output to file.\n         *\n         * @param { CompressFlushMode } flush - Control the behavior of refresh operations.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzflush(flush: CompressFlushMode): Promise<ReturnStatus>;\n        /**\n         * Compress and write nitems items of size size from buf to file.\n         *\n         * @param { ArrayBuffer } buf - The buffer to write data to.\n         * @param { number } size - The number of bytes in a single data block.\n         * @param { number } nitems - Number of data blocks to be written.\n         * @returns { Promise<number> } Return the number of full items written of size size.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzfwrite(buf: ArrayBuffer, size: number, nitems: number): Promise<number>;\n        /**\n         * Read and decompress data from gzip compressed files.\n         *\n         * @param { ArrayBuffer } buf - Target buffer for storing read results.\n         * @param { number } size - The number of bytes in a single data block.\n         * @param { number } nitems - Number of data blocks to be read.\n         * @returns { Promise<number> } Return the number of full items read of size size.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzfread(buf: ArrayBuffer, size: number, nitems: number): Promise<number>;\n        /**\n         * Same as gzclose(), gzclosew() only for use when writing or appending.\n         *\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800006 - Memory allocation failed.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzclosew(): Promise<ReturnStatus>;\n        /**\n         * Same as gzclose(), gzcloser() is only for use when reading.\n         *\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzcloser(): Promise<ReturnStatus>;\n        /**\n         * Compress and write the len uncompressed bytes at buf to file.\n         *\n         * @param { ArrayBuffer } buf - Object to the data buffer to be written.\n         * @param { number } len - The len uncompressed bytes.\n         * @returns { Promise<number> } Return the number of uncompressed bytes written.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzwrite(buf: ArrayBuffer, len: number): Promise<number>;\n        /**\n         * Push c back onto the stream for file to be read as the first character on the next read.\n         *\n         * @param { number } c - To fall back to the character before the input stream.\n         * @returns { Promise<number> } Return the character pushed.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzungetc(c: number): Promise<number>;\n        /**\n         * Return the starting position for the next gzread or gzwrite on file.\n         *\n         * @returns { Promise<number> } Return the starting position for the next gzread or gzwrite on file.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gztell(): Promise<number>;\n        /**\n         * Dynamically update the compression level and strategy for file.\n         *\n         * @param { CompressLevel } level - Compression level.\n         * @param { CompressStrategy } strategy - Compression strategy.\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzsetparams(level: CompressLevel, strategy: CompressStrategy): Promise<ReturnStatus>;\n        /**\n         * Set the starting position to offset relative to whence for the next gzread or gzwrite on file.\n         *\n         * @param { number } offset - Specify the new offset to move to.\n         * @param { OffsetReferencePoint } whence - Define the reference point for offset.\n         * @returns { Promise<number> } Return the resulting offset location as measured in bytes from the beginning of the uncompressed stream.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzseek(offset: number, whence: OffsetReferencePoint): Promise<number>;\n        /**\n         * Rewind file. This function is supported only for reading.\n         *\n         * @returns { Promise<ReturnStatus> } Return ReturnStatus the specific meaning is defined as enum.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzrewind(): Promise<ReturnStatus>;\n        /**\n         * Read and decompress up to len uncompressed bytes from file into buf.\n         *\n         * @param { ArrayBuffer } buf - User provided buffer address.\n         * @returns { Promise<number> } Return the number of uncompressed bytes actually read, less than len for end of file.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzread(buf: ArrayBuffer): Promise<number>;\n        /**\n         * Compress and write the given null-terminated string s to file, excluding the terminating null character.\n         *\n         * @param { string } str - Format descriptors and plain text.\n         * @returns { Promise<number> } Return the number of characters written.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzputs(str: string): Promise<number>;\n        /**\n         * Compress and write c, converted to an unsigned char, into file.\n         *\n         * @param { number } char - Write ASCII values for characters.\n         * @returns { Promise<number> } Return the value that was written.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzputc(char: number): Promise<number>;\n        /**\n         * Convert, format, compress, and write the arguments to file under control of the string format, as in fprintf.\n         *\n         * @param { string } format - Format descriptors and plain text.\n         * @param { Array<string | number> } args - Variable argument lists.\n         * @returns { Promise<number> } Return the number of uncompressed bytes actually written.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800004 - Compression or decompression stream error, which may be caused by an initialization error in the zlib stream structure or a modified structure.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzprintf(format: string, ...args: Array<string | number>): Promise<number>;\n        /**\n         * Return the current compressed (actual) read or write offset of file.\n         *\n         * @returns { Promise<number> } Return the current compressed (actual) read or write offset of file.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzoffset(): Promise<number>;\n        /**\n         * Read and decompress bytes from file into buf, until len-1 characters are read, or until a newline character is read and transferred to buf,\n         * or an end-of-file condition is encountered.\n         *\n         * @param { ArrayBuffer } buf - Store the read row data.\n         * @returns { Promise<string> } Return buf which is a null-terminated string.\n         * @throws { BusinessError } 401 - The parameter check failed. Possible causes: 1. Mandatory parameters are left unspecified;\n         * 2. Incorrect parameter types; 3. Parameter verification failed.\n         * @throws { BusinessError } 17800009 - Internal structure error.\n         * @syscap SystemCapability.BundleManager.Zlib\n         * @atomicservice\n         * @since 12\n         */\n        gzgets(buf: ArrayBuffer): Promise<string>;\n    }\n}\nexport default zlib;\n",
}
export default FILE;